package com.yuexun.dhdoctor.module.departmentDocumentNew.api;


import com.yuexun.dhdoctor.base.BaseEntity;
import com.yuexun.dhdoctor.module.departmentDocumentNew.bean.ShareDocBean;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;

/**
 * Created by e0672 on 2017/7/17.
 */

public interface ShareDocApi {
    //文档查询
    @FormUrlEncoded
    @POST("querySharedDocPageList.json")
    Observable<BaseEntity<ShareDocBean>> getShareDocDatas(@FieldMap Map<String, String> praise);

    //添加文档下载次数
    @FormUrlEncoded
    @POST("downloadDepartDoc.json")
    Observable<BaseEntity<String>> addDocDownloadNum(@FieldMap Map<String, String> praise);

    //批量取消文档共享
    @FormUrlEncoded
    @POST("cancelShareDepartDoc.json")
    Observable<BaseEntity<String>> calcelShareDoc(@FieldMap Map<String, String> praise);
}
